﻿<Window
    Closed="Window_Closed"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="S7.Windows.Chat.EnterChat"
    Title="Chat" Height="658" Width="600" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded" mc:Ignorable="d">
    <Grid>
    	<Grid Margin="8" Grid.Column="1">
    		<Label HorizontalAlignment="Center" Content="Live Chat" VerticalAlignment="Top"/>
    		<ListBox x:Name="lbChat" ItemTemplate="{DynamicResource tmpChat}" Margin="0,23.94,0,57.89">
    			<ListBox.Resources>
    				<DataTemplate x:Key="tmpChat">
    					<StackPanel Orientation="Horizontal">
    						<TextBox TextWrapping="Wrap" FontSize="16" FontWeight="Bold" CharacterCasing="Upper" Text="{Binding name}"/>
    						<TextBox TextWrapping="Wrap" FontSize="16" Text="{Binding message}"/>
    					</StackPanel>
    				</DataTemplate>
    			</ListBox.Resources>
    		</ListBox>
    		<Grid Margin="0,0,0,5.89" VerticalAlignment="Bottom">
    			<TextBox x:Name="tbMessage" Margin="0,0,108.307,0" TextWrapping="Wrap"/>
    			<Button x:Name="btnSend" HorizontalAlignment="Right" Margin="0,0,0.307,0" Width="100" Content="Send" Click="btnSend_Click" d:LayoutOverrides="HorizontalAlignment, Height"/>
    		</Grid>
    	</Grid>
    </Grid>
</Window>